using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public class News
{
    private int newsId;
    private string title;
    private string content;
    private DateTime createDate;

    public int NewsId
    {
        get { return newsId; }
        set {newsId = value; }
    }

    public string Title
    {
        get { return title; }
        set { title = value; }
    }

    public string Content
    {
        get { return content; }
        set { content = value; }
    }

    public DateTime CreateDate
    {
        get { return createDate; }
        set { createDate = value; }
    }


    public News()
    { }

    public News(int newsId, string title, string content, DateTime createDate)
    {
        this.newsId =newsId;
        this.title = title;
        this.content = content;
        this.createDate = createDate;
    }
}
